package com.example.dp886;

import android.content.Intent;
import android.os.Bundle;

import androidx.appcompat.app.AppCompatActivity;

import com.example.dp886.databinding.ActivityExamBinding;

public class ExamActivity extends AppCompatActivity {

    ActivityExamBinding binding;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        binding = ActivityExamBinding.inflate(getLayoutInflater());
        setContentView(binding.getRoot());
        binding.btnP1.setOnClickListener(v->{
            Intent intent = new Intent(this,MainActivity.class);
            startActivity(intent);
        });

        binding.btnP2.setOnClickListener(v->{
            Intent intent = new Intent(this, Activity2.class);
            startActivity(intent);
        });

        binding.btnP3.setOnClickListener(v->{
            Intent intent = new Intent(this, Activity03.class);
            startActivity(intent);
        });

        binding.btnP4.setOnClickListener(v->{
            Intent intent = new Intent(this, Activity4.class);
            startActivity(intent);
        });
    }
}